package com.ruoyi.web.controller.system.domain.category;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜单栏商品对象 product
 * 
 * @author ruoyi
 * @date 2020-12-21
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 菜单栏序号 */
    @Excel(name = "菜单栏序号")
    private Long categoryid;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** 是否单个 */
    @Excel(name = "是否单个")
    private String isSingle;

    /** 图片 */
    @Excel(name = "图片")
    private String url;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCategoryid(Long categoryid) 
    {
        this.categoryid = categoryid;
    }

    public Long getCategoryid() 
    {
        return categoryid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setIsSingle(String isSingle) 
    {
        this.isSingle = isSingle;
    }

    public String getIsSingle() 
    {
        return isSingle;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryid", getCategoryid())
            .append("name", getName())
            .append("description", getDescription())
            .append("price", getPrice())
            .append("isSingle", getIsSingle())
            .append("url", getUrl())
            .toString();
    }
}
